package operator

object Test {
  def main(args: Array[String]): Unit = {
    val r1 = new Rational(9, 6)
    val r2 = new Rational(2)
    val r4 = new Rational(1, 2)
    val r3 = r1 + r2 * r4
    println(r3)
    println(r3 * 2)
    println(r3 / 2)
    println(r3 - 2)
  }

}
